﻿@model SocialNetwork.Models.ScheduleViewModel
           
@{ 
    ViewBag.Title = "Расписание на день";
}

<div class="schedule">
    <table class="scheduleTable">
        <tr>
            <td>
                Кинотеатр
            </td>
            <td>
                Фильм
            </td>
            <td>
                Сеансы
            </td>
            <td class="noBorderCell">
            </td>
        </tr>
        @foreach (var cinemaSchedule in Model.CinemaSchedules)
        {
            <tr>
                <td>
                    @cinemaSchedule.CinemaName
                </td>
                <td class="noBorderCell">
                </td>
                <td class="noBorderCell">
                </td>
            </tr>
            foreach (var movie in cinemaSchedule.Movies)
            {
                <tr>
                    <td class="noBorderCell">
                    </td>
                    <td>
                        @movie.MovieName
                    </td>
                    <td>
                        @movie.Sessions
                    </td>
                    <td class="noBorderCell">
                        Редактировать
                    </td>
                </tr>
            }
        }
    </table>
</div>
